﻿package net.chrisjrock.loader.bulletloader {
	import flash.display.Sprite;
	import flash.system.Security;
	/**
	 * ...
	 * @author Christopher J. Rock
	 */
	public class BulletLibrary extends Sprite {
		public static var allowDomainList:Array = new Array("*");
		
		public function BulletLibrary() { Security.allowDomain.apply(this , allowDomainList); }
		
		public function getDefinition(name:String):Class {
			return loaderInfo.applicationDomain.getDefinition(name) as Class;
		}
		
		public function hasDefinition (name:String):Boolean { return loaderInfo.applicationDomain.hasDefinition(name); }
		
	}
	
}